import request from '@/utils/request'

export default{
  // 1、查询指定课时
  getById(id) {
    return request({
      url: `/admin/edu/video/getByID/${id}`,
      method: 'GET'
    })
  },
  // 2、更新课时
  update(video) {
    return request({
      url: '/admin/edu/video/update',
      method: 'PUT',
      data: video
    })
  },
  // 3、新增课时
  save(video) {
    return request({
      url: '/admin/edu/video/save',
      method: 'POST',
      data: video
    })
  },
  // 4、删除课时
  delete(id) {
    return request({
      url: `/admin/edu/video/remove/${id}`,
      method: 'DELETE'
    })
  }

}
